<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="二战名人堂 - 注册账号">
    <title>注册 | 二战名人堂</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="style.css">
    <style>
        /* 注册页面特有样式 */
        .register-section {
            padding: 12rem 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }
        
        .register-container {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow-heavy);
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .register-image {
            background-color: var(--primary-color);
            padding: 3rem;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .register-form-container {
            padding: 3rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--primary-color);
        }
        
        .form-input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition-base);
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
        }
        
        .form-terms {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 1.5rem 0;
            font-size: 0.9rem;
            color: #718096;
        }
        
        .register-btn {
            width: 100%;
            padding: 0.9rem;
            font-size: 1rem;
        }
        
        .login-link {
            text-align: center;
            margin-top: 1.5rem;
            color: #718096;
        }
        
        .login-link a {
            color: var(--secondary-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition-base);
        }
        
        .login-link a:hover {
            color: var(--accent-color);
        }
        
        .image-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: white;
        }
        
        .image-desc {
            margin-bottom: 2rem;
            color: #a0aec0;
            line-height: 1.7;
        }
        
        .feature-list {
            list-style: none;
        }
        
        .feature-list li {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .feature-list i {
            color: var(--accent-color);
            margin-top: 4px;
        }
        
        @media (max-width: 768px) {
            .register-container {
                grid-template-columns: 1fr;
            }
            
            .register-image {
                display: none;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar" id="navbar">
        <div class="container navbar-container">
            <a href="#" class="logo">二战名人堂<span>.</span></a>
            <ul class="nav-menu">
                <li><a href="index.html#hero" class="nav-link">首页</a></li>
                <li><a href="index.html#features" class="nav-link">历史意义</a></li>
                <li><a href="index.html#portfolio" class="nav-link">名人展示</a></li>
                <li><a href="index.html#contact" class="nav-link">关于我们</a></li>
            </ul>
            <div class="mobile-menu-btn" id="mobileMenuBtn">
                <i class="fa fa-bars"></i>
            </div>
        </div>
    </nav>

    <!-- 注册区域 -->
    <section class="register-section">
        <div class="container">
            <div class="register-container">
                <div class="register-image">
                    <h2 class="image-title">加入二战名人堂</h2>
                    <p class="image-desc">注册账号，获取更多历史资料和专属内容，与其他历史爱好者共同探讨二战历史，铭记历史，珍爱和平。</p>
                    
                    <ul class="feature-list">
                        <li>
                            <i class="fa fa-unlock-alt"></i>
                            <span>解锁完整的名人资料和历史文献</span>
                        </li>
                        <li>
                            <i class="fa fa-comments"></i>
                            <span>参与历史讨论，分享您的见解</span>
                        </li>
                        <li>
                            <i class="fa fa-bell"></i>
                            <span>获取最新的历史研究和展览信息</span>
                        </li>
                        <li>
                            <i class="fa fa-bookmark"></i>
                            <span>收藏您感兴趣的历史人物和事件</span>
                        </li>
                    </ul>
                </div>
                
                <div class="register-form-container">
                    <h2 class="section-title" style="text-align: left;">创建账号</h2>
                    <form id="registerForm">
                        <div class="form-group">
                            <label for="username" class="form-label">用户名</label>
                            <input type="text" id="username" class="form-input" placeholder="请输入用户名" required>
                        </div>
                        
                        <div class="form-group">
                            <label for="email" class="form-label">电子邮箱</label>
                            <input type="email" id="email" class="form-input" placeholder="请输入电子邮箱" required>
                        </div>
                        
                        <div class="form-group">
                            <label for="password" class="form-label">密码</label>
                            <input type="password" id="password" class="form-input" placeholder="请输入密码" required>
                        </div>
                        
                        <div class="form-group">
                            <label for="confirmPassword" class="form-label">确认密码</label>
                            <input type="password" id="confirmPassword" class="form-input" placeholder="请再次输入密码" required>
                        </div>
                        
                        <div class="form-terms">
                            <input type="checkbox" id="terms" required>
                            <label for="terms">我已阅读并同意<a href="#" style="color: var(--secondary-color);">服务条款</a>和<a href="#" style="color: var(--secondary-color);">隐私政策</a></label>
                        </div>
                        
                        <button type="submit" class="btn register-btn">注册账号</button>
                    </form>
                    
                    <p class="login-link">已有账号？<a href="login.html">立即登录</a></p>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer" id="contact">
        <div class="container">
            <div class="footer-top">
                <div class="footer-col">
                    <h3 class="footer-col-title">关于二战名人堂</h3>
                    <p class="footer-about">二战名人堂致力于收集、整理和展示第二次世界大战中的杰出人物事迹，传承历史记忆，弘扬和平精神。</p>
                    <div class="social-links">
                        <a href="#" class="social-link"><i class="fa fa-weibo"></i></a>
                        <a href="#" class="social-link"><i class="fa fa-wechat"></i></a>
                        <a href="#" class="social-link"><i class="fa fa-youtube-play"></i></a>
                        <a href="#" class="social-link"><i class="fa fa-history"></i></a>
                    </div>
                </div>
                
                <div class="footer-col">
                    <h3 class="footer-col-title">快速链接</h3>
                    <ul class="footer-links">
                        <li class="footer-link"><a href="index.html#hero">首页</a></li>
                        <li class="footer-link"><a href="index.html#features">历史意义</a></li>
                        <li class="footer-link"><a href="index.html#portfolio">名人展示</a></li>
                        <li class="footer-link"><a href="#">历史事件</a></li>
                        <li class="footer-link"><a href="#">关于我们</a></li>
                    </ul>
                </div>
                
                <div class="footer-col">
                    <h3 class="footer-col-title">联系我们</h3>
                    <div class="footer-contact">
                        <div class="footer-contact-item">
                            <i class="fa fa-map-marker footer-contact-icon"></i>
                            <span>北京市海淀区历史博物馆内</span>
                        </div>
                        <div class="footer-contact-item">
                            <i class="fa fa-phone footer-contact-icon"></i>
                            <span>010-12345678</span>
                        </div>
                        <div class="footer-contact-item">
                            <i class="fa fa-envelope footer-contact-icon"></i>
                            <span>contact@ww2halloffame.com</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="footer-bottom">
                <p>&copy; 2024 二战名人堂. 铭记历史，珍爱和平.</p>
            </div>
        </div>
    </footer>

    <script>
        // 导航栏滚动效果
        const navbar = document.getElementById('navbar');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 50) {
                navbar.classList.add('scrolled');
            } else {
                navbar.classList.remove('scrolled');
            }
        });

        // 表单验证
        const registerForm = document.getElementById('registerForm');
        const password = document.getElementById('password');
        const confirmPassword = document.getElementById('confirmPassword');
        
        registerForm.addEventListener('submit', (e) => {
            e.preventDefault();
            
            if (password.value !== confirmPassword.value) {
                alert('两次输入的密码不一致，请重新输入');
                return;
            }
            
            if (password.value.length < 6) {
                alert('密码长度不能少于6位');
                return;
            }
            
            // 这里可以添加表单提交逻辑
            alert('注册成功！');
            registerForm.reset();
        });
    </script>
</body>
</html>